<?php
use tpfcore\Core;
?>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- Set render engine for 360 browser -->
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- HTML5 shim for IE8 support of HTML5 elements -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
			</script>
		<![endif]-->
		<link href="{$admin_assets_path}/css/theme.min.css" rel="stylesheet">
		<link href="{$admin_assets_path}/css/simplebootadmin.css" rel="stylesheet">
		<link href="{$admin_assets_path}/css/default.css" rel="stylesheet" />
		<link href="{$admin_assets_path}/css/font-awesome.min.css"
		rel="stylesheet" type="text/css">
		<style>
			.length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
			.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom:
			0px;}
			.child-controls{border:1px #ddd dashed; padding: 20px 0 0;}
		</style>
		<!--[if IE 7]>
			<link rel="stylesheet" href="{$admin_assets_path}/css/font-awesome-ie7.min.css">
		<![endif]-->
		<script type="text/javascript">
			//全局变量
			var GV = {
				WEB_ROOT:"",
				DIMAUB: "/",
				JS_ROOT: "/theme/backend/assets/js/",
				TOKEN: ""
			};
		</script>
		<!-- Le javascript==================================================-
		-> <!-- Placed at the end of the document so the pages load faster -->
		<script src="{$admin_assets_path}/js/jquery.js"></script>
		<script src="{$admin_assets_path}/js/wind.js"></script>
		<script src="{$admin_assets_path}/js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#A" data-toggle="tab">小程序配置</a></li>
			<li><a href="#B" data-toggle="tab">数据参数配置</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="">
			<fieldset>
				<div class="tabbable">
					<div class="tab-content">
						<div class="tab-pane active" id="A">
							<fieldset>
							<div class="control-group">
								<label class="control-label">通讯录姓名:</label>
								<div class="controls">
									<input type="text" name="firstName" value="{$list.firstName|default=''}" placeholder="保存到通讯录的名称">
									<span class="form-required">* </span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">手机号码:</label>
								<div class="controls">
									<input type="text" name="mobile" value="{$list.mobile|default=''}" placeholder="11位手机号码">
									<span class="form-required">* </span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">QQ号码:</label>
								<div class="controls">
									<input type="text" name="qq" value="{$list.qq|default=''}" placeholder="QQ号码">
									<span class="form-required">* </span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">公司名称:</label>
								<div class="controls">
									<input type="text" name="organization" value="{$list.organization|default=''}" placeholder="公司名称">
									<span class="form-required">* </span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">邮箱:</label>
								<div class="controls">
									<input type="text" name="email" value="{$list.email|default=''}" placeholder="邮箱">
									<span class="form-required">* </span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">文章是否可评论:</label>
								<div class="controls">
									<label><input type="radio" name="is_comment" value="1" {eq name="list.is_comment" value="1" }checked{/eq}>可评论</label>
									<label><input type="radio" name="is_comment" value="0" {eq name="list.is_comment" value="0" }checked{/eq}>不可评论</label>
								</div>
							</div>
							</fieldset>
						</div>
						<div class="tab-pane" id="B">
							<!-- <div class="admin-tips">
				                <font class="red">注意：</font>此项数据配置为小程序初始化数据
				            </div> -->
							<fieldset>
							<div class="control-group">
								<label class="control-label">关于我们栏目ID:</label>
								<div class="controls">
									<input type="text" name="init[about_cid]" value="{$list.init.about_cid|default=''}">
									<span class="form-required">* 分类ID</span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">首页栏目导航样式:</label>
								<div class="controls">
									<label><input type="radio" name="init[nav_style]" value="1" {eq name="list['init']['nav_style']" value="1"}checked{/eq}> <img src="{$static_path}/images/style_2.jpg"/>横纵排列的方式</label>
									<label><input type="radio" name="init[nav_style]" value="2" {eq name="list['init']['nav_style']" value="2"}checked{/eq}> <img src="{$static_path}/images/style_3.jpg"/>两列排列的方式</label>
									<span class="form-required">* 分类ID</span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">页面导航条设置:</label>
								<div class="controls child-controls" id="params-list">
									<div class="control-group params-item">
										<label class="control-label">前景颜色值</label>
										<div class="controls">
											<input type="text" name="init[navigationBarColor][frontColor]" value="{$list.init.navigationBarColor.frontColor|default='#ffffff'}">
											<span>* 前景颜色值，包括按钮、标题、状态栏的颜色，仅支持 #ffffff 和 #000000</span>
										</div>
									</div>
									<div class="control-group params-item">
										<label class="control-label">背景颜色值</label>
										<div class="controls">
											<input type="text" name="init[navigationBarColor][backgroundColor]" value="{$list.init.navigationBarColor.backgroundColor|default='#000'}">
											<span>* 背景颜色值，有效值为十六进制颜色</span>
										</div>
									</div>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">tarBar整体样式设置:</label>
								<div class="controls child-controls" id="params-list">
									<div class="control-group params-item">
										<label class="control-label">文字颜色</label>
										<div class="controls">
											<input type="text" name="init[tabBarStyle][color]" value="{$list.init.tabBarStyle.color|default='#666'}">
											<span>* tab 上的文字默认颜色，HexColor</span>
										</div>
									</div>
									<div class="control-group params-item">
										<label class="control-label">文字选中时的颜色</label>
										<div class="controls">
											<input type="text" name="init[tabBarStyle][selectedColor]" value="{$list.init.tabBarStyle.selectedColor|default='#d93744'}">
											<span>* tab 上的文字选中时的颜色，HexColor</span>
										</div>
									</div>
									<div class="control-group params-item">
										<label class="control-label">背景色</label>
										<div class="controls">
											<input type="text" name="init[tabBarStyle][backgroundColor]" value="{$list.init.tabBarStyle.backgroundColor|default='#f8f8f8'}">
											<span>* tab 的背景色，HexColor</span>
										</div>
									</div>
									<div class="control-group params-item">
										<label class="control-label">上边框的颜色</label>
										<div class="controls">
											<input type="text" name="init[tabBarStyle][borderStyle]" value="{$list.init.tabBarStyle.borderStyle|default='black'}">
											<span>* tabBar上边框的颜色， 仅支持 black/white</span>
										</div>
									</div>
								</div>
							</div>
							</fieldset>
						</div>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">确定操作</button>
				<a class="btn" href="javascript:history.go(-1);">返回</a>
			</div>
		</form>
	</div>
		<script src="{$admin_assets_path}/js/common.js"></script>
	</body>

</html>